import Cookies from 'js-cookie'
const PermissionData = 'Permission-Data'

export function getPermission() {
  return Cookies.get(PermissionData);
}

export function setPermission(data) {
  return Cookies.set(PermissionData, data);
}

// localStorage本地存储
export function getLocalPermission() {
  return localStorage.getItem(PermissionData);
}

export function setLocalPermission(data) {
  return localStorage.setItem(PermissionData, data)
}
